import { IsNotEmpty, IsString, IsOptional, IsNumber } from 'class-validator'

export class CreateFolderDto {
  @IsNotEmpty({ message: '目录名称不能为空' })
  @IsString({ message: '目录名称必须是字符串' })
  filename: string

  @IsOptional()
  @IsNumber({}, { message: '父级ID必须是数字' })
  parentId?: number
}
